<?php
if(!defined('IN_WOGU')) {
    exit('Access Denied');
}

class Register
{
    static protected $_data = array();
    
    protected function __construct() {}
    
    protected function __clone() {}
    
    static public function set($k, $v, $type = 'WOGU_USER') {
        self::$_data[$type.$k] = $v;
    }
    
    static public function get($k, $type = 'WOGU_USER') {
        if(isset(self::$_data[$type.$k])) {
            return self::$_data[$type.$k];
        }
        
        return false;
    }
    
    static public function sets($data, $type = 'WOGU_USER') {
        foreach($data as $k => $v) {
            self::$_data[$type.$k] = $v;
        }
    }
}